<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        p {
            background-color: lightseagreen;
        }
        h3{
            background-color: lightcoral;
        }
        div{
            background-color: lightblue;
        }
        strong{
            /* padding: 20px; */
            /* margin: 30px; */
        }
        .text{
            height: 100px;
            background-color: lightgray;
            line-height: 100px;
        }
        .text span{
            display: inline-block;
            line-height: 1;
            vertical-align: top;
            border:1px solid red;
        }
        .box{
            display: flex; /*内部显示类型*/
        }
        .box .item{
            border: 1px solid red;
            width: 50px;
            height: 50px;
        }
    </style>
</head>
<body>
    <!-- 外部显示类型是block -->
    <div>我是div</div>
    <p>我的P</p>
    <h3>我是h3</h3>

    <!-- 外部显示类型是inline -->
    <span>我是span</span>
    <strong>我是strong</strong>
    <i>我是i</i>


    <div class="text">我是一段文字，<span>我是另一段文字</span>我是第三</div>


    <div class="box">
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
    </div>
</body>
</html>